package com.smh.a07ThreadDemo7;

public class MyThread1 extends Thread {
    @Override
    public void run() {

        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName() + "@" + i);
            //出让当前cpu的使用权.只是让结果尽可能均匀
            Thread.yield();
        }
    }
}
